<?php echo form_open($this->curl . '/edit/'.$this->validation->id, 'id="myform" name="myform" autocomplete="off"')?>
<?php echo form_hidden('id', $this->validation->id)?>
<br />
<table class="nostyle" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td>
		<?php echo $this->validation->error_string?>
		<table class="nostyle forma" width="100%" border="0" cellpadding="3" cellspacing="0">
		<tr>
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->sections_model->fields['name']?></th>
			<td><div class="input_300"><?php echo form_input('name', $this->validation->name, 'class="input-text"')?></div></td>
		</tr>
		<tr>
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->sections_model->fields['type']?></th>
			<td><div class="input_300"><?php echo form_dropdown('type', $type_options, array($this->validation->type), 'id="id_type" onchange="showSections($(\'#id_type\').val(), \'place_sections\')"', FALSE)?></div></td>
		</tr>
		<tr id="place_sections" class="<?php echo $showHideClass;?>">
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->sections_model->fields['section']?></th>
			<td><div class="input_300"><?php echo form_dropdown('section', $section_options, array($this->validation->section), null, FALSE)?></div></td>
		</tr>
		<tr>
			<th><?php $this->load->view('_elements/obligatory');?><?php echo $this->sections_model->fields['description']?></th>
			<td><div class="input_300"><?php echo form_input('description', $this->validation->description, 'class="input-text"')?></div></td>
		</tr>	
		<tr>
			<td></td>
			<td>			
				<input name="edit" type="submit" class="btn btn_save" id="submit" value="<?php echo T_('Submit')?>" />
				<input name="reset"  type="reset"  class="btn btn_clear" id="reset" value="<?php echo T_('Reset')?>" onclick="$('#myform input[type=text]').val('');" />
				<input name="delete" type="button" class="btn btn_delete" id="delete" value="<?php echo T_('Delete')?>" onclick="if (confirm('<?php echo T_('Are you sure you want to delete this Publication?')?>')) location='/admin/<?php echo $this->curl; ?>/delete/<?php echo $this->validation->id?>';return false;" />
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>

<?php echo form_close()?>